package main.java.observer.jdkDemo;

public class Demo {
    public static void main(String[] args) {
        Thief thief = new Thief("张三");
        Policemen policemen = new Policemen("老李");
        thief.addObserver(policemen);
        thief.steal();
    }
}
